package com.kaifamiao.demo.d0802;

public interface Pet {

    public abstract void eat();

    void drink();

    // 防御方法
    default void run() {

    }

    private static void show(){

    }
}

class Animal {

    public static void name(){

    }
}

class Dog extends Animal implements Pet {

    @Override
    public void eat() {
        System.out.println("吃狗粮");
    }

    @Override
    public void drink() {
        System.out.println("喝水");
    }
}
